package com.org.aaron.test;

import java.util.Random;
@SuppressWarnings("static-access")
public class Life {
	private static int lifeTime;
	private static Life life;
	private Life(int lifeTime){
		this.lifeTime = lifeTime;
	}
	public static Life getBorn(){
		if(life==null){
			Random r = new Random();
			life = new Life(r.nextInt(50));
		}
		return life;
	}
	public int getLifeTime(){
		return lifeTime;
	}

}
